import request from '@/utils/request'

// 企业列表
export const enterpriseList = (params) => {
  return request({
    url: '/enterprise/list',
    params
  })
}

// 企业添加
export const enterpriseAddPost = (data) => {
  return request({
    url: '/enterprise/add',
    method: 'post',
    data
  })
}

// 企业状态设置
export const enterpriseStatusPost = (data) => {
  return request({
    url: '/enterprise/status',
    method: 'post',
    data
  })
}

// 企业删除
export const enterpriseRemovePost = (data) => {
  return request({
    url: '/enterprise/remove',
    method: 'post',
    data
  })
}

// 企业编辑
export const enterpriseEditPost = (data) => {
  return request({
    url: '/enterprise/edit',
    method: 'post',
    data
  })
}
